import baseURL from './baseURL'

export default {
    Login: `${baseURL.jky}/supplier/login`,//登录页
    getLoginUser: `${baseURL.Login}/homepage/getLoginUser`,//获取登录用户信息
    fileServer: {
        uploadFile: `${baseURL.fileServer}/uploadFile`,//图片上传
        downloadFile: `${baseURL.fileServer}/downloadFile`,//富文本图片上传
    },
    admin:{
        getTag:"http://192.168.9.105:3000/admin/getTag",
        getList:"http://192.168.9.105:3000/admin/getList",
        modifyDetailsById:"http://192.168.9.105:3000/admin/modifyDetailsById",
        addData:"http://192.168.9.105:3000/admin/addData",
        getDetailsById:"http://192.168.9.105:3000/admin/getDetailsById",
    },
    //首页
    home: {
        getHomePageDate: `${baseURL.jky}/admin/homepage/getHomePageDate`
    },
    //订单
    subOrder: {
        getBaseData: `${baseURL.jky}/supplier/subOrder/getBaseData`,
        getBaseDataForInfo: `${baseURL.jky}/supplier/subOrder/getBaseDataForInfo`,
        getList: `${baseURL.jky}/supplier/subOrder/getList`,
        getOrderInfo: `${baseURL.jky}/supplier/subOrder/getOrderInfo`,
        modifiedSubOrderTime: `${baseURL.jky}/supplier/subOrder/modifiedSubOrderTime`,
        receipt: `${baseURL.jky}/supplier/subOrder/receipt`,
    },
    mainOrder: {
        getBaseData: `${baseURL.jky}/supplier/mainOrder/getBaseData`,
        getBaseDataForInfo: `${baseURL.jky}/supplier/mainOrder/getBaseDataForInfo`,
        getList: `${baseURL.jky}/supplier/mainOrder/getList`,
        getOrderInfo: `${baseURL.jky}/supplier/mainOrder/getOrderInfo`,
        updateOrderInfo: `${baseURL.jky}/supplier/mainOrder/updateOrderInfo`,
    },
    //品牌
    brand: {
        addBrand: `${baseURL.jky}/supplier/brand/addBrand`,//
        deleteBrand: `${baseURL.jky}/supplier/brand/deleteBrand`,
        getBrandById: `${baseURL.jky}/supplier/brand/getBrandById`,
        getBrandList: `${baseURL.jky}/supplier/brand/getBrandList`,
        updateBrand: `${baseURL.jky}/supplier/brand/updateBrand`,
    },
    productBrand:{
        addProductBrand: `${baseURL.jky}/supplier/productBrand/addProductBrand`,
        deleteProductBrand: `${baseURL.jky}/supplier/productBrand/deleteProductBrand`,
        getBaseData: `${baseURL.jky}/supplier/productBrand/getBaseData`,
        getProductBrandById: `${baseURL.jky}/supplier/productBrand/getProductBrandById`,
        getProductBrandList: `${baseURL.jky}/supplier/productBrand/getProductBrandList`,
        updateProductBrand: `${baseURL.jky}/supplier/productBrand/updateProductBrand`,
},

    professor: {
        getList: `${baseURL.jky}/supplier/professor/getList`,//
    },

    //农户管理

    producer: {
        getList: `${baseURL.jky}/supplier/producer/getList`,//
        getInfo: `${baseURL.jky}/supplier/producer/getInfo`,//
        getFarmerInfo2: `${baseURL.jky}/supplier/producer/getFarmerInfo2`,//
        saveOrUpdateFamerSupplyInfo: `${baseURL.jky}/supplier/producer/saveOrUpdateFamerSupplyInfo`,//
    },


//采购商管理接口

    purchase: {
        getInfo: `${baseURL.jky}/supplier/purchase/getInfo`,//
        getList: `${baseURL.jky}/supplier/purchase/getList`,//
},
    //商品分类/品种
    person: {
        getInfo: `${baseURL.jky}/supplier/person/getInfo`,//
        updateInfo: `${baseURL.jky}/supplier/person/updateInfo`,//
        updatePassword: `${baseURL.jky}/supplier/person/updatePassword`,//
    },

    //报表
    orderReport: {
        getBrandChart: `${baseURL.jky}/supplier/orderReport/getBrandChart`,//
        getOrderReportList: `${baseURL.jky}/supplier/orderReport/getBrandPipeChart`,
        getMonthChart :`${baseURL.jky}/supplier/orderReport/getMonthChart`,
    },
    standard:{
        addStandard: `${baseURL.jky}/supplier/standard/addStandard`,//
        deleteStandard: `${baseURL.jky}/supplier/standard/deleteStandard`,//
        getBaseData: `${baseURL.jky}/supplier/standard/getBaseData`,//
        getStandardById: `${baseURL.jky}/supplier/standard/getStandardById`,//
        getStandardList: `${baseURL.jky}/supplier/standard/getStandardList`,//
        updateStandard: `${baseURL.jky}/supplier/standard/updateStandard`,//
    }

}
//  简单封装  基本思想 请求配置 和 路径分开 方便后期 上线改动，  home 为单页名字，内为本页方法
